home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / misc / update-rootcache < prev    next >
Encoding:
Internet Message Format  |  1996-10-25  |  2.3 KB

  1. Path: vixie!pa.dec.com!bind-redist-request
  2. From: fred@lightside.net (Fred Condo)
  3. Newsgroups: local.mail.dns.bind
  4. Subject: Re: Server Name Mismatch
  5. Date: 2 Jun 1995 11:29:27 -0700
  6. Organization: Vixie Enterprises
  7. Lines: 49
  8. Sender: daemon@vix.com
  9. Distribution: local
  10. Message-ID: <v02120d02abf4fe5c80e3@[198.81.209.42]>
  11. NNTP-Posting-Host: gw.home.vix.com
  12. X-Received: by gw.home.vix.com id AA10851; Fri, 2 Jun 95 11:29:26 -0700
  13. X-Received: from pobox1.pa.dec.com by inet-gw-1.pa.dec.com (5.65/24Feb95)
  14.     id AA14118; Fri, 2 Jun 95 11:10:49 -0700
  15. X-Received: by pobox1.pa.dec.com; id AA17213; Fri, 2 Jun 95 11:10:38 -0700
  16. X-Received: by pobox1.pa.dec.com; id AA17209; Fri, 2 Jun 95 11:10:37 -0700
  17. X-Received: from relay3.UU.NET by inet-gw-3.pa.dec.com (5.65/24Feb95)
  18.     id AA01344; Fri, 2 Jun 95 11:07:11 -0700
  19. X-Received: by relay3.UU.NET 
  20.     id QQyskl16276; Fri, 2 Jun 1995 13:46:58 -0400
  21. X-Received: from zeppelin.lightside.com by relay3.UU.NET with SMTP 
  22.     id QQyskl16264; Fri, 2 Jun 1995 13:46:57 -0400
  23. X-Received: from [198.81.209.42] by zeppelin.lightside.com with smtp
  24.     (Smail3.1.28.1 #7) id m0sHao6-0008DCC; Fri, 2 Jun 95 10:46 PDT
  25. X-Sender: fred@covina.lightside.com
  26. X-Mime-Version: 1.0
  27. X-Content-Type: text/plain; charset="us-ascii"
  28. X-To: bind@uunet.uu.net
  29.  
  30. -----BEGIN PGP SIGNED MESSAGE-----
  31.  
  32. >> Does anyone know how to fetch the freshest list of root nameservers?
  33. >> I think this might help to solve this problem ...
  34. >
  35. >dig @ns.internic.net . ns >root.cache
  36.  
  37. Here's a safer way to do this:
  38.  
  39. #!/bin/sh
  40. ROOT=terp.umd.edu
  41. TMPFILE=/tmp/ns.$$
  42. DIG=/etc/dig
  43. DBCACHE=/usr/local/dns/root.cache
  44. #
  45. # Look up root server information and store it in a temporary file.
  46. #
  47. $DIG @$ROOT . ns >$TMPFILE
  48.  
  49. #
  50. # Move the new cache in place if it is not empty.
  51. #
  52. if test -s $TMPFILE
  53. then
  54.         mv $TMPFILE $DBCACHE
  55.         #
  56.         # Reload the nameserver
  57.         #
  58.         kill -HUP `/bin/cat /etc/named.pid`
  59. else
  60.         rm $TMPFILE
  61. fi
  62.  
  63. -----BEGIN PGP SIGNATURE-----
  64. Version: 2.6.2
  65.  
  66. iQCVAwUBL89OQwRvu4f5glrJAQFixgP/cjYJozxjvKw0aTmIsgGbtCwz0txynKMn
  67. f7NggSAM2Txop6sq4XevU57UC8DKPgcMqx9WmjncmQ5eHxNjiTDUOtg3EZcKiHa+
  68. V+VpLGyCniI/n1rLbEUVfmiE5XYassS6bBNbSF0d6Rx6vS0nPrOsUK06RP8XbegJ
  69. qwxAGUpWWcM=
  70. =uIbC
  71. -----END PGP SIGNATURE-----
  72.  
  73. --
  74. Fred Condo + fred@lightside.com   + http://www.lightside.com/~fred/
  75. Lightside, Inc. + Internet access + http://www.lightside.com/
  76. PGP public key: finger fred@lightside.com
  77.  
  78.  
  79.